package com.bieyang.anjia.module;
/**
 * 用户类型
 * @author Administrator
 *
 */
public enum IdentifyEnum {
	 PERSONAL("01","个人"),
	 SECURITY_OFFICER("02","保安");
	 
    /** 枚举码. */
    private final String code;

    /** 描述信息. */
    private final String desc;

    private IdentifyEnum(String code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public static IdentifyEnum getStatus(String code) {
        for (IdentifyEnum status : IdentifyEnum.values()) {
            if (status.getCode().equals(code)) {
                return status;
            }
        }
        return null;
    }

    public String getCode() {
        return code;
    }

    public String getDesc() {
        return desc;
    }
}
